# -*- coding: utf-8 -*-

'''
共用函数帮助类
'''

import os
import shutil
import json
import sys
import codecs
import subprocess
import hashlib
import zipfile


sys.dont_write_bytecode = True

CUR_PATH = os.path.dirname(os.path.realpath(__file__))


#srcFileDir:文件路径
#tarDir:目标目录
def diffMap(map1,map2,diffFunc):
    _diffMap = {}
    for key in map1:
        ret = diffFunc(map1,map2,key)
        if ret:
            _diffMap[key] = ret
    return _diffMap